<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>报表基础数据维护</title>
    <%@ include file="/common/comCSS-lte.html" %>
    <style>
        .layui-table-hover {
            background-color: #3baae3!important;
        }
    </style>
</head>
<body>
    <ol class="breadcrumb" style="background-color: white;border-bottom: 1px solid #d0e3f0;">
        <li>
            <text style="color: #141a1d;">用户名:</text>
            <span id="userSpan" style="color: blue;">${sessionScope.userId}</span></li>
        <li><a href="/jz-report/loginOut">退出登出</a></li>
        <li><a href="goto?page=home">返回主页</a></li>
        <li class="active">报表基础数据维护</li>
    </ol>

    <h3 class="text-center" style="margin-bottom: 20px;"><strong style="color: #00008B;">报表基础数据维护</strong></h3>

    <div class="leftNav col-lg-2">
        <ul class="layui-nav layui-nav-tree layui-bg-cyan layui-inline" lay-filter="demo" style="width: 270px;">
            <%--<li class="layui-nav-item"><a>EFGR: halm_效率Bin值对应关系</a></li>--%>
            <li class="layui-nav-item"><a>ETTA: halm_ETA目标效率值</a></li>
            <li class="layui-nav-item"><a>LIAT: halm_线别对应单多晶属性</a></li>
            <%--<li class="layui-nav-item"><a>MOMA: 型号/规格-物料号对应关系</a></li>--%>
        </ul>
    </div>

    <div class="col-lg-10">
        <div class="button_group" style="background-color: #DCDCDC; padding: 8px; border-radius:5px; border: 1px solid #A9A9A9">
            <a class="layui-btn layui-btn-sm layui-btn" id="query_btn">查询</a>
            <a class="layui-btn layui-btn-sm layui-btn" style="display: none;" id="add_btn">新增</a>
            <a class="layui-btn layui-btn-sm layui-btn-danger" id="delete_btn">删除</a>
            <a class="layui-btn layui-btn-sm layui-btn-normal" id="clean_btn">清空</a>
            <a class="layui-btn layui-btn-sm layui-btn-primary" id="uploadModal_btn">Excel导入</a>
            <a class="layui-btn layui-btn-sm layui-btn-primary" id="download_btn">EXCEL模板下载</a>
        </div>
        <table class="layui-hide" id="test" lay-filter="test"></table>
    </div>

    <%-- Excel导入模态框--%>
    <div id="uploadModal" class="modal fade" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">导入基础数据</h4>
                </div>
                <div class="modal-body">
                    <form id="uploadForm">
                        <input type="file" name="file" id="fileinput">
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button id="upload_btn" type="button" class="btn btn-primary">导入</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 查询效率Bin值对应关系模态框 -->
    <div id="queryEFGRModal" class="modal fade bs-example-modal-lg col-md-12" tabindex="-1" role="dialog" aria-labelledby="queryEFGRModalLabel">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="queryEFGRModalLabel" style="font-weight: bold"></h4>
                </div>
                <div class="modal-body col-md-12">
                    <form class="form-horizontal col-md-12">
                        <div class="row">
                            <div class="col-md-6 control-group">
                                <label class="control-label col-md-5">分档版本 </label>
                                <div class="col-md-7">
                                    <select id="eff_no_select" class="form-control"></select>
                                </div>
                            </div>
                            <div class="col-md-6 control-group">
                                <label class="control-label col-md-5">单/多晶 </label>
                                <div class="col-md-7">
                                    <input id="ddj" type="text" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="row" style="margin-top: 10px">
                            <div class="col-md-6 control-group">
                                <label class="control-label col-md-5">效率 </label>
                                <div class="col-md-7">
                                    <input id="efficiency" type="text" class="form-control">
                                </div>
                            </div>
                            <div class="col-md-6 control-group">
                                <label class="control-label col-md-5">Bin值 </label>
                                <div class="col-md-7">
                                    <input id="bin" type="text" class="form-control">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" id="queryEFGRModal_btn" class="btn btn-primary">确认</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 新增型号/规格-物料号对应关系模态框 -->
    <div id="addMOMAModal" class="modal fade bs-example-modal-lg col-md-12" tabindex="-1" role="dialog" aria-labelledby="addMOMAModalLabel">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="addMOMAModalLabel" style="font-weight: bold"></h4>
                </div>
                <div class="modal-body col-md-12">
                    <form class="form-horizontal col-md-12">
                        <div class="row">
                            <div class="col-md-6 control-group">
                                <label class="control-label col-md-5">规格/型号 </label>
                                <div class="col-md-7">
                                    <input id="model" type="text" class="form-control">
                                </div>
                            </div>
                            <div class="col-md-6 control-group">
                                <label class="control-label col-md-5">物料号 </label>
                                <div class="col-md-7">
                                    <input id="material" type="text" class="form-control">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" id="addMOMAModal_btn" class="btn btn-primary">确认</button>
                </div>
            </div>
        </div>
    </div>

    <script type="text/html" id="tableBar">
        <a class="layui-btn layui-btn-xs line_edit" lay-event="edit">保存修改</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs line_del" lay-event="del">删除</a>
    </script>

    <%@ include file="/common/comJS-lte.html" %>
    <script src="/jn-report/js/page/basic_data.js"></script>
</body>
</html>
